import api from '@/api/index.ts'

// 获取列表
export function GetData(params: any) {
  return api.get('/api/screen/list', { params })
}
// 获取详情
export function GetDataDetail(id: string) {
  return api.get(`/api/screen/detail/${id}`)
}
// 添加
export function PostCreateData(params: any) {
  return api.post('/api/screen/create', params)
}
// 编辑
export function PutModifyData(params: any) {
  return api.put('/api/screen/modify', params)
}
// 添加
export function PostRefresh(vid: number) {
  return api.post(`/api/screen/refresh`, { vId: vid })
}
// 复制
export function PostCopy(id: number) {
  return api.post(`/api/screen/copy/${id}`)
}
